import designer from "./modules/designer";
import performance from "./modules/performance";
import login from "./modules/login";
import serve_scope from "./modules/serve_scope";
var api = {
  ...performance,
  ...designer,
  ...login,
  ...serve_scope
};
var config = {
  // 不加/app 是因为 有些接口没有/app  所以不能当作基路径
  //baseURL: "http://app.tuxiaozhu.com/", // 正式服务器
  baseURL: "http://192.168.1.40:8010/tuxiaozhu/", // 测试服务器
  //baseURL: 'http://192.168.0.109:8010/tuxiaozhu/',  //杨鹏
  //baseURL: 'http://192.168.1.110:8010/tuxiaozhu/',  //刘丑新
  //baseURL: 'http://192.168.0.117:8010/tuxiaozhu/',  //廖肥宏
  //baseURL: 'http://192.168.1.40:8010/tuxiaozhu/',  //测试服务器
  //baseURL: 'http://192.168.0.111:8005/',  //秀岳
  timeout: 20e3,
  ["Content-Type"]: "application/x-www-form-urlencoded;charset=UTF-8",
  mock: localStorage.getItem('MOCK')
}; 

localStorage.switchApi_baseUrl &&
  (config.baseURL = localStorage.getItem('switchApi_baseUrl'));

// if(getuserUid() == "466343161e7a46bfbf309095a22de0dd"){
//   config.baseURL = 'http://app.tuxiaozhu.com/'
// }

if (config.mock) {
  console.log("%c现在是mock数据状态", "color: red");
}

export default {
  api,
  config
};
